/*
 * @Author: WangNing
 * @Date: 2025-04-26 10:29:05
 * @LastEditors: WangNing
 * @LastEditTime: 2025-04-27 19:30:05
 * @FilePath: \linetest\frontend\vite.config.js
 * @Description: 
 * Copyright (c) 2025 by VGE, All Rights Reserved. 
 */
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  resolve: {
    alias: {
      '@': path.resolve(__dirname, './src'),
    },
  },
  server: {
    port: 8181,
    proxy: {
      '/api': {
        target: 'http://127.0.0.1:5000',
        changeOrigin: true,
        secure: false,
        ws: true
      }
    }
  }
}) 